package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import android.text.TextUtils;

import net.wxxr.http.interfaces.IJsonParser;

public class GetBabyProfileBean implements Serializable, IJsonParser {

	private static final long serialVersionUID = 1L;
	private BabyProfileBean baby_profile;
	
	public BabyProfileBean getBaby_profile() {
		return baby_profile;
	}

	public void setBaby_profile(BabyProfileBean baby_profile) {
		this.baby_profile = baby_profile;
	}

	@Override
	public IJsonParser parse(String json) throws Exception {
		if (!TextUtils.isEmpty(json)) {
			GsonBuilder builder = new GsonBuilder();
			Gson gson = builder.create();
			return gson.fromJson(json, GetBabyProfileBean.class);
		}
		return null;
	}

}
